UIDownLoad = UIBase.New(PanelResNames.UIDownLoad)

local size = 0
function UIDownLoad.Init(count)
    UIDownLoad.count = count
    UIBase.Init(UIDownLoad)
end

function UIDownLoad:OnCreate()
    UIDownLoad.Text_DownLoadTips = self:GetChild("Text_DownLoadTips")
    UIDownLoad.Bar_DownLoad = self:GetChild("Bar_DownLoad")
    UIDownLoad.txt_process = self.Bar_DownLoad:GetChild("title")
    UIDownLoad.Text_DownLoadTips.text = ""
    UIDownLoad.Bar_DownLoad.value = 0
end

function UIDownLoad.RefreshDownload(name, index)
    UIDownLoad.Text_DownLoadTips.text = name
    UIDownLoad.txt_process.text = table.concat({index, "/", UIDownLoad.count})
    UIDownLoad.Bar_DownLoad.value = (index / UIDownLoad.count) * 100
end

function UIDownLoad.nn()
    
end

return UIDownLoad